import request from '@/utils/request'

// 查询禁止交易列表
export function listSymbol(query) {
  return request({
    url: '/business/symbol/list',
    method: 'get',
    params: query
  })
}

// 查询禁止交易详细
export function getSymbol(id) {
  return request({
    url: '/business/symbol/' + id,
    method: 'get'
  })
}

// 新增禁止交易
export function addSymbol(data) {
  return request({
    url: '/business/symbol',
    method: 'post',
    data: data
  })
}

// 修改禁止交易
export function updateSymbol(data) {
  return request({
    url: '/business/symbol',
    method: 'put',
    data: data
  })
}

// 删除禁止交易
export function delSymbol(id) {
  return request({
    url: '/business/symbol/' + id,
    method: 'delete'
  })
}
